package com.wubo.sec.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 资源
 * @author wubo
 * @CreateDate 2010-7-30
 * @version 1.0.01
 */
@MappedSuperclass
public abstract class Resource implements Serializable {
	private static final long serialVersionUID = 7082038453541520184L;
	
	@Id
	@Column(unique=true, nullable=true, length=32)
	protected String code; //编码，主键
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	protected String url;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
}